package com.customer.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.customer.entity.AICharacter;
import com.customer.mapper.AICharacterMapper;
import com.customer.service.AICharacterService;

/**
 * AI角色服务实现类
 */
@Service
public class AICharacterServiceImpl implements AICharacterService {
    
    @Autowired
    private AICharacterMapper aiCharacterMapper;
    
    @Override
    public List<AICharacter> getAllPublicCharacters() {
        return aiCharacterMapper.selectAllPublicCharacters();
    }
    
    @Override
    public AICharacter getCharacterByRoleKey(String roleKey) {
        return aiCharacterMapper.selectByRoleKey(roleKey);
    }
    
    @Override
    public List<AICharacter> searchCharacters(String keyword) {
        return aiCharacterMapper.searchCharacters(keyword);
    }
}